@blankdotpage/cake 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cake/clipboard.d.ts +1 -1
- package/dist/cake/core/runtime.d.ts +1 -0
- package/dist/cake/dom/render.d.ts +1 -1
- package/dist/cake/engine/selection/selection-geometry.d.ts +1 -0
- package/dist/index.cjs +803 -246
- package/dist/index.js +803 -246
- package/package.json +1 -1
package/dist/cake/clipboard.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function htmlToMarkdownForPaste(
|
|
1
|
+
export declare function htmlToMarkdownForPaste(htmlContent: string): string | null;
|
|
@@ -133,6 +133,7 @@ export type Runtime = {
|
|
|
133
133
|
kind?: "dom" | "keyboard" | "programmatic";
|
|
134
134
|
}): RuntimeState;
|
|
135
135
|
serializeSelection(state: RuntimeState, selection: Selection): string;
|
|
136
|
+
serializeSelectionToHtml(state: RuntimeState, selection: Selection): string;
|
|
136
137
|
applyEdit(command: EditCommand, state: RuntimeState): RuntimeState;
|
|
137
138
|
};
|
|
138
139
|
export declare function createRuntime(extensions: CakeExtension[]): Runtime;
|
|
@@ -9,6 +9,6 @@ export type RenderContentResult = {
|
|
|
9
9
|
content: Node[];
|
|
10
10
|
map: ReturnType<typeof createDomMap>;
|
|
11
11
|
};
|
|
12
|
-
export declare function renderDocContent(doc: Doc, extensions: CakeExtension[],
|
|
12
|
+
export declare function renderDocContent(doc: Doc, extensions: CakeExtension[], root?: HTMLElement): RenderContentResult;
|
|
13
13
|
export declare function renderDoc(doc: Doc, extensions: CakeExtension[]): RenderResult;
|
|
14
14
|
export declare function mergeInlineForRender(inlines: Inline[]): Inline[];
|